package unittest;

import tester.ui.AntiCheatingForm;
import tester.PersonManager;
import tester.ProblemManager;
import tester.Config;
import tester.InternalErrorException;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: aleck
 * Date: 2007-10-27
 * Time: 10:21:35
 * To change this template use File | Settings | File Templates.
 */
public class AntiCheetingTest {
  public static void main(String[] args) {
    PersonManager persons = null;
    ProblemManager problems = null;
    Config.updateConfig("E:\\program\\java\\Tester\\hw1");
    try {
      problems = new ProblemManager(Config.getDataDir());
      persons = new PersonManager(Config.getProgramDir(), problems);
    } catch (InternalErrorException e) {
      e.printStackTrace();
    }
    JFrame frame = new AntiCheatingForm(persons, problems);
    frame.pack();
    frame.setVisible(true);
  }
}
